﻿@model DotNetClub.Core.Entity.Comment

@*
    For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
}

@section Header{
    <link href="~/lib/editor.md/css/editormd.min.css" rel="stylesheet" />
    <script src="~/lib/editor.md/editormd.min.js"></script>
}

<div class="col-md-9">
    <div class="panel panel-default">
        <div class="panel-heading">
            <ol class="breadcrumb">
                <li><a asp-action="Index" asp-controller="Home">首页</a></li>
                <li>编辑回复</li>
            </ol>
        </div>
        <div class="panel-body">
            <form method="post" asp-antiforgery="true">
                <div class="form-group">
                    <div id="editor">
                        <textarea>@Model.Content</textarea>
                    </div>
                </div>
                
                <div class="form-group">
                    <button class="btn btn-primary">提交</button>
                </div>
            </form>
        </div>
    </div>
</div>

<div class="col-md-3">
    @await Component.InvokeAsync("LoginInfoPanel")

    @await Component.InvokeAsync("NewTopicPanel")

    @await Component.InvokeAsync("LinksPanel")
</div>

<script type="text/javascript">
        var editor = editormd("editor", {
            name: "Content",
            width: "100%",
            height: 400,
            syncScrolling: "single",
            path: "/lib/editor.md/lib/",
            toolbarIcons: function () {
                return ["bold", "italic", "|", "quote", "list-ul", "list-ol", "|", "link", "image", "|", "preview"]
            },
            placeholder: "",
            watch: false
        });
</script>